package org.abc.program.controller.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * springMVC的后端控制器
 * 前端控制器由框架提供
 */

@Controller  // 赋予控制器能力，处理客户端请求
public class HelloController {

	@RequestMapping(value = "/api/hello",method = RequestMethod.GET)
	public String hello(){
		return "hello";  // 字符串hello对应view视图下的*.jsp
	}
}
